import { http } from '@/utils/http.js'

// 添加患者（家庭档案）
export const addPatientApi = (data) => {
  return http.post('/patient/add', data)
}

// 获取患者列表
export const patientListApi = () => {
  return http.get('/patient/mylist')
}

// 删除患者信息
export const removePatientApi = (id) => {
  return http.delete(`/patient/del/${id}`)
}

// 获取患者详情
export const patientDetailApi = (id) => {
  return http.get(`/patient/info/${id}`)
}

// 更新(修改)患者详情
export const updatePatientApi = (data) => {
  return http.put(`/patient/update`, data)
}
